From f3866e4d9d95283f9a69a138c7343d746d7be0ec Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 17 May 2019 14:40:12 +0200 Subject: [PATCH] cpufreq: patch target() indirect call to direct one This looks to be the only frequently executed hook; don't bother patching any other ones. Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Acked-by: Andrew Cooper --- xen/drivers/cpufreq/utility.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/drivers/cpufreq/utility.c b/xen/drivers/cpufreq/utility.c index 15e15fd458..b93895d4dd 100644 --- a/xen/drivers/cpufreq/utility.c +++ b/xen/drivers/cpufreq/utility.c @@ -364,7 +364,8 @@ int __cpufreq_driver_target(struct cpufreq_policy *policy, { unsigned int prev_freq = policy->cur; - retval = cpufreq_driver.target(policy, target_freq, relation); + retval = alternative_call(cpufreq_driver.target, + policy, target_freq, relation); if ( retval == 0 ) TRACE_2D(TRC_PM_FREQ_CHANGE, prev_freq/1000, policy->cur/1000); } -- 2.30.2